package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.constant.AutoFillConstant;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface CategoryMapper {

    List<Category> list(CategoryPageQueryDTO dto);

    @AutoFill(OperationType.INSERT)
    void insert(Category category);

    @AutoFill(OperationType.UPDATE)
    void update(Category category);

    List<Category> listBytype(Integer type);

    void deleteById(Long id);
}
